package com.xwdeshj.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import javax.persistence.*;

/**
 * 商家信息/主管审核表
 */
@Entity(name = "xw_business_info")
public class XwBusinessInfo {
    /**
     * 商家id
     */
    @Column(name = "business_id")
    private Integer businessId;

    /**
     * 商家加密id（就是 普通用户未升级之前的用户id）
     */
    @Column(name = "business_encryptId")
    private String businessEncryptid;

    /**
     * 景区加密id（店铺id）
     */
    @Column(name = "sec_encryptId")
    private String secEncryptid;

    /**
     * 农家乐加密id（店铺id）
     */
    @Column(name = "farm_encryptId")
    private String farmEncryptid;

    /**
     * 用户名（未升级之前的用户登录名）
     */
    @Column(name = "business_name")
    private String businessName;

    /**
     * 联系方式
     */
    @Column(name = "business_tel")
    private String businessTel;

    /**
     * 法定代表人
     */
    @Column(name = "business_Legal")
    private String businessLegal;

    /**
     * 营业执照
     */
    @Column(name = "business_license")
    private String businessLicense;

    /**
     * 统一社会信用码
     */
    @Column(name = "business_Credit")
    private String businessCredit;

    /**
     * 企业名称
     */
    @Column(name = "business_CompanyName")
    private String businessCompanyname;

    /**
     * 商户类型(“”：全部，1：农家乐，2：景区)
     */
    @Column(name = "business_type")
    private String businessType;

    /**
     * 企业成立日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Column(name = "business_create")
    private String businessCreate;

    /**
     * 审核结果 (“”：全部，0：审核中，1：审核通过，2：审核失败)
     */
    @Column(name = "business_state")
    private String businessState;

    /**
     * 备注
     */
    @Column(name = "business_Remarks")
    private String businessRemarks;

    /**
     * 审核人加密id（管理员）
     */
    @Column(name = "reviewer_checkencryptId")
    private String reviewerCheckencryptid;

    /**
     * 申请人用户加密id
     */
    @Column(name = "applicant_checkencryptId")
    private String applicantCheckencryptid;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "business_updatetime")
    private Date businessUpdatetime;

    /**
     * 申请时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "business_createtime")
    private Date businessCreatetime;

    public XwBusinessInfo(){

    }

    public XwBusinessInfo(String businessEncryptid, String secEncryptid, String farmEncryptid, String businessName, String businessTel, String businessLegal, String businessLicense, String businessCredit, String businessCompanyname, String businessType, String businessCreate, String businessState, String businessRemarks, String reviewerCheckencryptid, String applicantCheckencryptid, Date businessUpdatetime, Date businessCreatetime) {
        this.businessEncryptid = businessEncryptid;
        this.secEncryptid = secEncryptid;
        this.farmEncryptid = farmEncryptid;
        this.businessName = businessName;
        this.businessTel = businessTel;
        this.businessLegal = businessLegal;
        this.businessLicense = businessLicense;
        this.businessCredit = businessCredit;
        this.businessCompanyname = businessCompanyname;
        this.businessType = businessType;
        this.businessCreate = businessCreate;
        this.businessState = businessState;
        this.businessRemarks = businessRemarks;
        this.reviewerCheckencryptid = reviewerCheckencryptid;
        this.applicantCheckencryptid = applicantCheckencryptid;
        this.businessUpdatetime = businessUpdatetime;
        this.businessCreatetime = businessCreatetime;
    }

    /**
     * 获取商家id
     * @return business_id - 商家id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getBusinessId() {
        return businessId;
    }

    /**
     * 设置商家id
     *
     * @param businessId 商家id
     */
    public void setBusinessId(Integer businessId) {
        this.businessId = businessId;
    }

    /**
     * 获取商家加密id（就是 普通用户未升级之前的用户id）
     *
     * @return business_encryptId - 商家加密id（就是 普通用户未升级之前的用户id）
     */
    public String getBusinessEncryptid() {
        return businessEncryptid;
    }

    /**
     * 设置商家加密id（就是 普通用户未升级之前的用户id）
     *
     * @param businessEncryptid 商家加密id（就是 普通用户未升级之前的用户id）
     */
    public void setBusinessEncryptid(String businessEncryptid) {
        this.businessEncryptid = businessEncryptid;
    }

    /**
     * 获取景区加密id（店铺id）
     *
     * @return sec_encryptId - 景区加密id（店铺id）
     */
    public String getSecEncryptid() {
        return secEncryptid;
    }

    /**
     * 设置景区加密id（店铺id）
     *
     * @param secEncryptid 景区加密id（店铺id）
     */
    public void setSecEncryptid(String secEncryptid) {
        this.secEncryptid = secEncryptid;
    }

    /**
     * 获取农家乐加密id（店铺id）
     *
     * @return farm_encryptId - 农家乐加密id（店铺id）
     */
    public String getFarmEncryptid() {
        return farmEncryptid;
    }

    /**
     * 设置农家乐加密id（店铺id）
     *
     * @param farmEncryptid 农家乐加密id（店铺id）
     */
    public void setFarmEncryptid(String farmEncryptid) {
        this.farmEncryptid = farmEncryptid;
    }

    /**
     * 获取用户名（未升级之前的用户登录名）
     *
     * @return business_name - 用户名（未升级之前的用户登录名）
     */
    public String getBusinessName() {
        return businessName;
    }

    /**
     * 设置用户名（未升级之前的用户登录名）
     *
     * @param businessName 用户名（未升级之前的用户登录名）
     */
    public void setBusinessName(String businessName) {
        this.businessName = businessName;
    }

    /**
     * 获取联系方式
     *
     * @return business_tel - 联系方式
     */
    public String getBusinessTel() {
        return businessTel;
    }

    /**
     * 设置联系方式
     *
     * @param businessTel 联系方式
     */
    public void setBusinessTel(String businessTel) {
        this.businessTel = businessTel;
    }

    /**
     * 获取法定代表人
     *
     * @return business_Legal - 法定代表人
     */
    public String getBusinessLegal() {
        return businessLegal;
    }

    /**
     * 设置法定代表人
     *
     * @param businessLegal 法定代表人
     */
    public void setBusinessLegal(String businessLegal) {
        this.businessLegal = businessLegal;
    }

    /**
     * 获取营业执照
     *
     * @return business_license - 营业执照
     */
    public String getBusinessLicense() {
        return businessLicense;
    }

    /**
     * 设置营业执照
     *
     * @param businessLicense 营业执照
     */
    public void setBusinessLicense(String businessLicense) {
        this.businessLicense = businessLicense;
    }

    /**
     * 获取统一社会信用码
     *
     * @return business_Credit - 统一社会信用码
     */
    public String getBusinessCredit() {
        return businessCredit;
    }

    /**
     * 设置统一社会信用码
     *
     * @param businessCredit 统一社会信用码
     */
    public void setBusinessCredit(String businessCredit) {
        this.businessCredit = businessCredit;
    }

    /**
     * 获取企业名称
     *
     * @return business_CompanyName - 企业名称
     */
    public String getBusinessCompanyname() {
        return businessCompanyname;
    }

    /**
     * 设置企业名称
     *
     * @param businessCompanyname 企业名称
     */
    public void setBusinessCompanyname(String businessCompanyname) {
        this.businessCompanyname = businessCompanyname;
    }

    /**
     * 获取商户类型(“”：全部，1：农家乐，2：景区)
     *
     * @return business_type - 商户类型(“”：全部，1：农家乐，2：景区)
     */
    public String getBusinessType() {
        return businessType;
    }

    /**
     * 设置商户类型(“”：全部，1：农家乐，2：景区)
     *
     * @param businessType 商户类型(“”：全部，1：农家乐，2：景区)
     */
    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    /**
     * 获取企业成立日期
     *
     * @return business_create - 企业成立日期
     */
    public String getBusinessCreate() {
        return businessCreate;
    }

    /**
     * 设置企业成立日期
     *
     * @param businessCreate 企业成立日期
     */
    public void setBusinessCreate(String businessCreate) {
        this.businessCreate = businessCreate;
    }

    /**
     * 获取审核结果 (“”：全部，0：审核中，1：审核通过，2：审核失败)
     *
     * @return business_state - 审核结果 (“”：全部，0：审核中，1：审核通过，2：审核失败)
     */
    public String getBusinessState() {
        return businessState;
    }

    /**
     * 设置审核结果 (“”：全部，0：审核中，1：审核通过，2：审核失败)
     *
     * @param businessState 审核结果 (“”：全部，0：审核中，1：审核通过，2：审核失败)
     */
    public void setBusinessState(String businessState) {
        this.businessState = businessState;
    }

    /**
     * 获取备注
     *
     * @return business_Remarks - 备注
     */
    public String getBusinessRemarks() {
        return businessRemarks;
    }

    /**
     * 设置备注
     *
     * @param businessRemarks 备注
     */
    public void setBusinessRemarks(String businessRemarks) {
        this.businessRemarks = businessRemarks;
    }

    /**
     * 获取审核人加密id（管理员）
     *
     * @return reviewer_checkencryptId - 审核人加密id（管理员）
     */
    public String getReviewerCheckencryptid() {
        return reviewerCheckencryptid;
    }

    /**
     * 设置审核人加密id（管理员）
     *
     * @param reviewerCheckencryptid 审核人加密id（管理员）
     */
    public void setReviewerCheckencryptid(String reviewerCheckencryptid) {
        this.reviewerCheckencryptid = reviewerCheckencryptid;
    }

    /**
     * 获取申请人用户加密id
     *
     * @return applicant_checkencryptId - 申请人用户加密id
     */
    public String getApplicantCheckencryptid() {
        return applicantCheckencryptid;
    }

    /**
     * 设置申请人用户加密id
     *
     * @param applicantCheckencryptid 申请人用户加密id
     */
    public void setApplicantCheckencryptid(String applicantCheckencryptid) {
        this.applicantCheckencryptid = applicantCheckencryptid;
    }

    /**
     * 获取更新时间
     *
     * @return business_updatetime - 更新时间
     */
    public Date getBusinessUpdatetime() {
        return businessUpdatetime;
    }

    /**
     * 设置更新时间
     *
     * @param businessUpdatetime 更新时间
     */
    public void setBusinessUpdatetime(Date businessUpdatetime) {
        this.businessUpdatetime = businessUpdatetime;
    }

    /**
     * 获取申请时间
     *
     * @return business_createtime - 申请时间
     */
    public Date getBusinessCreatetime() {
        return businessCreatetime;
    }

    /**
     * 设置申请时间
     *
     * @param businessCreatetime 申请时间
     */
    public void setBusinessCreatetime(Date businessCreatetime) {
        this.businessCreatetime = businessCreatetime;
    }

    @Override
    public String toString() {
        return "XwBusinessInfo{" +
                "businessId=" + businessId +
                ", businessEncryptid='" + businessEncryptid + '\'' +
                ", secEncryptid='" + secEncryptid + '\'' +
                ", farmEncryptid='" + farmEncryptid + '\'' +
                ", businessName='" + businessName + '\'' +
                ", businessTel='" + businessTel + '\'' +
                ", businessLegal='" + businessLegal + '\'' +
                ", businessLicense='" + businessLicense + '\'' +
                ", businessCredit='" + businessCredit + '\'' +
                ", businessCompanyname='" + businessCompanyname + '\'' +
                ", businessType='" + businessType + '\'' +
                ", businessCreate=" + businessCreate +
                ", businessState='" + businessState + '\'' +
                ", businessRemarks='" + businessRemarks + '\'' +
                ", reviewerCheckencryptid='" + reviewerCheckencryptid + '\'' +
                ", applicantCheckencryptid='" + applicantCheckencryptid + '\'' +
                ", businessUpdatetime=" + businessUpdatetime +
                ", businessCreatetime=" + businessCreatetime +
                '}';
    }
}